package cn.iocoder.yudao.module.promotion.dal.dataobject.prizedraw;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * 抽奖设置 DO
 *
 * @author 芋道源码
 */
@TableName("promotion_prize_draw_setting")
@KeySequence("promotion_prize_draw_setting_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PrizeDrawSettingDO extends BaseDO {


    private static final long serialVersionUID = 1L;

    /**
     * 抽奖设置ID
     */
    @Schema(description = "抽奖设置ID")
    @TableId(value = "prize_draw_setting_id", type = IdType.ASSIGN_ID)
    private Long prizeDrawSettingId;

    /**
     * 获得抽奖次数方式（1：龙豆兑换，2：邀新，3：连续签到，4：商城下单，5：预约试驾核销）
     */
    @Schema(description = "获得抽奖次数方式（1：龙豆兑换，2：邀新，3：连续签到，4：商城下单，5：预约试驾核销）")
    @TableField("setting_type")
    private String settingType;

    /**
     * X龙豆兑换一次
     */
    @Schema(description ="X龙豆兑换一次")
    @TableField(value = "dragon_beans", updateStrategy = FieldStrategy.IGNORED)
    private Integer dragonBeans;

    /**
     * 每邀请X位新用户成功注册抽奖次数+1
     */
    @Schema(description ="每邀请X位新用户成功注册抽奖次数+1")
    @TableField(value = "invite_nums", updateStrategy = FieldStrategy.IGNORED)
    private Integer inviteNums;

    /**
     * 连续签到X天抽奖次数+1
     */
    @Schema(description ="连续签到X天抽奖次数+1")
    @TableField(value = "signin_nums", updateStrategy = FieldStrategy.IGNORED)
    private Integer signinNums;

}